<div class="doc-item" id="doc-1553"><h2 class="doc-item-name">leftmost<span class="namespace">(clojure.zip)</span></h2><ul class="var-arglists"><li>(<span class="var-name">leftmost</span>  loc)</li></ul><div class="var-docstring"><p>Returns the loc of the leftmost sibling of the node at this loc, or self</p></div><div class="var-source"><pre>; clojure/zip.clj:145
(defn leftmost
  [loc]
    (let [[node {l :l r :r :as path}] loc]
      (if (and path (seq l))
        (with-meta [(first l) (assoc path :l [] :r (concat (rest l) [node] r))] ^loc)
        loc)))</pre></div><div class="license"><p>Copyright (c) Rich Hickey. All rights reserved.</p><p>The use and distribution terms for this software are covered by the <a href="http://opensource.org/licenses/eclipse-1.0.php">Eclipse Public License 1.0</a>, which can be found in the file
          epl-v10.html at the root of this distribution. By using this software
          in any fashion, you are agreeing to be bound by the terms of this 
          license. You must not remove this notice, or any other, from this 
          software.</p></div></div>